package com.cragon.dao;

import com.cragon.entity.User;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LoginDao extends CrudRepository<User, Long> {
    List<User> findByUsernameAndPassword(String name, String password);
}
